﻿#ifndef FORMWINDOW_H
#define FORMWINDOW_H

#include <QWidget>
#include <QPushButton>
#include <QLineEdit>
#include <QComboBox>
#include <QSpinBox>
#include "person.h"
/* 表单布局*/
class FormWindow : public QWidget
{
    Q_OBJECT
public:
    explicit FormWindow(QWidget *parent = nullptr);
    void initWindow();

    QPushButton * commitButton;
    QLineEdit *nameEdit;
    QComboBox *genderBox;
    QSpinBox  *ageBox;
signals:
    //自定义信号  只有声明，没有实现的函数接口
    //信号发射  emit sendPerson("bbl",10,"M");
    void sendPerson(QString name,int age,QString gender);
    void sendPerson(Person p);
public slots:
    void sendData();
};

#endif // FORMWINDOW_H
